% GAUTIER LE BIHAN - 2020
% Replication files for "Shocks vs Menu Costs: Patterns of Price Rigidity in an Estimated Multi-Sector Menu-Cost Model?" Review of Economics and Statistics
%
% Table 2 + Table C

clear;
tic
addpath('..\..\Utilities')  
load actual_moments_k


load ..\..\Estimation_param\MS_produits_CPlus\param
param=param;

s=227


for jj=1:227;
    p0=abs(tanh(param(jj,1)));
    mu_c=param(jj,2);
    sig_eps_a=exp(param(jj,3));
    rho_a=0.6946; 
    
    weight_j=actual_moments_k(jj,12)/100;

    sm_m=0;
    param_e=[p0 mu_c sig_eps_a rho_a];
   [moments]=geNCalvoPlus_VC(p0, mu_c, sig_eps_a, rho_a, weight_j);
  stat_d(jj,:)=[ param_e moments];
jj
  save stat_d stat_d;
end
